// 封装与商品相关的接口函数
import http from "@/utils/http"
// 请求轮播图数据
export const bannerListAPI = (params: any) => {
    return http({
        url: "/api/banner/list",
        method: "get",
        params,
    });
}
// 请求秒杀接口
export const secondKillAPI = (params: any) => {
    return http({
        url: "/api/pro/seckilllist",
        method: "get",
        params,
    });
}
// 请求推荐商品数据接口
export const recommendedListAPI = (params?: any) => {
    return http({
        url: "/api/pro/recommendlist",
        method: "get",
        params
    })
}
// 获取登录请求接口
export const userLoginAPI = (data?: any) => {
    return http({
        url: "/api/user/login",
        method: "post",
        data
    })
}
// 请求商品详情数据接口
export const goodsDetailAPI = (proid: string) => {
    return http({
        url: "/api/pro/detail/" + proid,
        method: "get",
    })
}
